Optimal. Leaf size=112 \[ -\frac {5 a \sqrt {a x^3+b x^4}}{12 b^2}+\frac {5 a^2 \sqrt {a x^3+b x^4}}{8 b^3 x}+\frac {x \sqrt {a x^3+b x^4}}{3 b}-\frac {5 a^3 \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a x^3+b x^4}}\right )}{8 b^{7/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 112, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {2049, 2054,
212} \begin {gather*} -\frac {5 a^3 \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a x^3+b x^4}}\right )}{8 b^{7/2}}+\frac {5 a^2 \sqrt {a x^3+b x^4}}{8 b^3 x}-\frac {5 a \sqrt {a x^3+b x^4}}{12 b^2}+\frac {x \sqrt {a x^3+b x^4}}{3 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2049
Rule 2054
Rubi steps
\begin {align*} \int \frac {x^4}{\sqrt {a x^3+b x^4}} \, dx &=\frac {x \sqrt {a x^3+b x^4}}{3 b}-\frac {(5 a) \int \frac {x^3}{\sqrt {a x^3+b x^4}} \, dx}{6 b}\\ &=-\frac {5 a \sqrt {a x^3+b x^4}}{12 b^2}+\frac {x \sqrt {a x^3+b x^4}}{3 b}+\frac {\left (5 a^2\right ) \int \frac {x^2}{\sqrt {a x^3+b x^4}} \, dx}{8 b^2}\\ &=-\frac {5 a \sqrt {a x^3+b x^4}}{12 b^2}+\frac {5 a^2 \sqrt {a x^3+b x^4}}{8 b^3 x}+\frac {x \sqrt {a x^3+b x^4}}{3 b}-\frac {\left (5 a^3\right ) \int \frac {x}{\sqrt {a x^3+b x^4}} \, dx}{16 b^3}\\ &=-\frac {5 a \sqrt {a x^3+b x^4}}{12 b^2}+\frac {5 a^2 \sqrt {a x^3+b x^4}}{8 b^3 x}+\frac {x \sqrt {a x^3+b x^4}}{3 b}-\frac {\left (5 a^3\right ) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x^2}{\sqrt {a x^3+b x^4}}\right )}{8 b^3}\\ &=-\frac {5 a \sqrt {a x^3+b x^4}}{12 b^2}+\frac {5 a^2 \sqrt {a x^3+b x^4}}{8 b^3 x}+\frac {x \sqrt {a x^3+b x^4}}{3 b}-\frac {5 a^3 \tanh ^{-1}\left (\frac {\sqrt {b} x^2}{\sqrt {a x^3+b x^4}}\right )}{8 b^{7/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 104, normalized size = 0.93 \begin {gather*} \frac {\sqrt {b} x^2 \left (15 a^3+5 a^2 b x-2 a b^2 x^2+8 b^3 x^3\right )+15 a^3 x^{3/2} \sqrt {a+b x} \log \left (-\sqrt {b} \sqrt {x}+\sqrt {a+b x}\right )}{24 b^{7/2} \sqrt {x^3 (a+b x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.43, size = 120, normalized size = 1.07
method | result | size |
risch | \(\frac {\left (8 b^{2} x^{2}-10 a b x +15 a^{2}\right ) x^{2} \left (b x +a \right )}{24 b^{3} \sqrt {x^{3} \left (b x +a \right )}}-\frac {5 a^{3} \ln \left (\frac {\frac {a}{2}+b x}{\sqrt {b}}+\sqrt {b \,x^{2}+a x}\right ) x \sqrt {x \left (b x +a \right )}}{16 b^{\frac {7}{2}} \sqrt {x^{3} \left (b x +a \right )}}\) | \(98\) |
default | \(\frac {x \sqrt {x \left (b x +a \right )}\, \left (16 x^{2} \sqrt {b \,x^{2}+a x}\, b^{\frac {7}{2}}-20 \sqrt {b \,x^{2}+a x}\, b^{\frac {5}{2}} a x +30 \sqrt {b \,x^{2}+a x}\, b^{\frac {3}{2}} a^{2}-15 \ln \left (\frac {2 \sqrt {b \,x^{2}+a x}\, \sqrt {b}+2 b x +a}{2 \sqrt {b}}\right ) a^{3} b \right )}{48 \sqrt {b \,x^{4}+a \,x^{3}}\, b^{\frac {9}{2}}}\) | \(120\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.87, size = 171, normalized size = 1.53 \begin {gather*} \left [\frac {15 \, a^{3} \sqrt {b} x \log \left (\frac {2 \, b x^{2} + a x - 2 \, \sqrt {b x^{4} + a x^{3}} \sqrt {b}}{x}\right ) + 2 \, {\left (8 \, b^{3} x^{2} - 10 \, a b^{2} x + 15 \, a^{2} b\right )} \sqrt {b x^{4} + a x^{3}}}{48 \, b^{4} x}, \frac {15 \, a^{3} \sqrt {-b} x \arctan \left (\frac {\sqrt {b x^{4} + a x^{3}} \sqrt {-b}}{b x^{2}}\right ) + {\left (8 \, b^{3} x^{2} - 10 \, a b^{2} x + 15 \, a^{2} b\right )} \sqrt {b x^{4} + a x^{3}}}{24 \, b^{4} x}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{4}}{\sqrt {x^{3} \left (a + b x\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.76, size = 106, normalized size = 0.95 \begin {gather*} \frac {1}{24} \, \sqrt {b x^{2} + a x} {\left (2 \, x {\left (\frac {4 \, x}{b \mathrm {sgn}\left (x\right )} - \frac {5 \, a}{b^{2} \mathrm {sgn}\left (x\right )}\right )} + \frac {15 \, a^{2}}{b^{3} \mathrm {sgn}\left (x\right )}\right )} - \frac {5 \, a^{3} \log \left ({\left | a \right |}\right ) \mathrm {sgn}\left (x\right )}{16 \, b^{\frac {7}{2}}} + \frac {5 \, a^{3} \log \left ({\left | -2 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a x}\right )} \sqrt {b} - a \right |}\right )}{16 \, b^{\frac {7}{2}} \mathrm {sgn}\left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^4}{\sqrt {b\,x^4+a\,x^3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________